import request from '@/service/request'



// 查询接待列表
export const getList = async (params: any) => {
  return await request.get({ url: `/hkb/sample/page`, params })
}

// 新增接待
export const addSample = async (params: any) => {
  return await request.post({ headersType: 'application/json',url: `/hkb/sample/create`, data:JSON.stringify(params) })
}

// 编辑接待
export const editSample = async (params: any) => {
  return await request.put({ headersType: 'application/json',url: `/hkb/sample/update`, data:JSON.stringify(params) })
}

// 删除接待
export const deleteSample = async (id: any) => {
  return await request.delete({ url: `/hkb/sample/delete?id=` + id })
}

// 导出接待
export const exportSample = async (id: any) => {
  return await request.delete({ url: '/hkb/sample/export-excel' })
}
